package com.ty.tour.service.serviceImp;


import com.ty.tour.pojo.Attractions;
import com.ty.tour.mapper.AttractionsMapper;
import com.ty.tour.service.AttractionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Author is ***
 * @since 2020-03-19
 */
@Service
public class AttractionsServiceImpl extends ServiceImpl<AttractionsMapper, Attractions> implements AttractionsService {

    @Autowired
    private AttractionsMapper attractionsMapper;

    @Override
    public List<Attractions> getAttractionBycusId(Integer customId) {
        return attractionsMapper.getAttractionBycusId(customId);
    }

    @Override
    public List<Attractions> getAttractionByLevel(Integer level, String keyword) {
        return attractionsMapper.getAttractionByLevel(level,keyword);
    }
}
